package com.xy.condition;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

import java.util.function.Predicate;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/4/8 16:15
 * @description
 */


public class MyImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{"com.xy.bean.Blue","com.xy.bean.Yellow"};
    }

    @Override
    public Predicate<String> getExclusionFilter() {
        return null;
    }
}
